package com.wzcl.app.model.vo;


import com.wzcl.app.dao.model.AppFile;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.beans.BeanUtils;

@EqualsAndHashCode(callSuper = false)
@Data
public class FileVo extends BaseVo {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "hash值")
    private String hash;

    @ApiModelProperty(value = "文件大小")
    private Long size;

    @ApiModelProperty(value = "文件地址")
    private String src;

    @ApiModelProperty(value = "文件类型")
    private String type;

    private FileVo(){
    }

    public static FileVo create(AppFile appFile){
        FileVo fileVo = new FileVo();
        BeanUtils.copyProperties(appFile,fileVo);
        fileVo.translationValueStr();
        return fileVo;
    }

    @Override
    public void translationValueStr() {
    }

    @Override
    public void processResources() {

    }
}
